import axios from "axios";

const config = {
    method: 'get',
    url: 'https://icanhazip.com/',
};


export const getIP = () => {
    return axios(config)
        .then(function (response) {
            return response.data;
        })
        .catch(function (error) {
            console.log(error);
        });
}